package com.hornsun.repository.mapper;

import com.hornsun.domain.dbo.MemberCoupon;
import com.hornsun.domain.dbo.MemberCouponExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Component;

import javax.xml.crypto.Data;

@Component
public interface MemberCouponMapper {
    long countByExample(MemberCouponExample example);

    int deleteByExample(MemberCouponExample example);

    int deleteByPrimaryKey(String memberCouponGuid);

    int insert(MemberCoupon record);

    int insertSelective(MemberCoupon record);

    List<MemberCoupon> selectByExampleWithRowbounds(MemberCouponExample example, RowBounds rowBounds);

    List<MemberCoupon> selectByExample(MemberCouponExample example);

    MemberCoupon selectByPrimaryKey(String memberCouponGuid);

    int updateByExampleSelective(@Param("record") MemberCoupon record, @Param("example") MemberCouponExample example);

    int updateByExample(@Param("record") MemberCoupon record, @Param("example") MemberCouponExample example);

    int updateByPrimaryKeySelective(MemberCoupon record);

    int updateByPrimaryKey(MemberCoupon record);

    //根据guid释放优惠券
    void updatePayTime( String memberCouponGuid);
}